package com.efast.cafe.portal.service.base;

import java.util.List;

import com.efast.cafe.framework.service.ICafeService;
import com.efast.cafe.portal.bean.base.BaseCompanyInfoBean;
import com.efast.cafe.portal.entity.base.BaseCompanyInfo;
import com.efast.cafe.portal.entity.common.PortalAttachmentForm;
import com.efast.cafe.portal.remote.base.BaseCompanyInfoService;




/******************************************************************************
 * @File name   :      BaseCompanyInfoService.java
 *
 * @Author      :      fxm
 *
 * @Date        :      2016-6-27
 *
 * @Copyright Notice: 
 * Copyright (c) 2016 Efast Serv. All  Rights Reserved.
 * This software is published under the terms of the Efast Software
 * License version 1.0, a copy of which has been included with this
 * distribution in the LICENSE.txt file.
 * 
 * 
 * ----------------------------------------------------------------------------
 * Date                   Who         Version        Comments
 * 2016-6-27 上午10:10:22        fxm     1.0            Initial Version
 *****************************************************************************/
public interface IBaseCompanyInfoService extends BaseCompanyInfoService,ICafeService<BaseCompanyInfo>{
	/**
	 * 根据主键ID查询portal_company_info表
	 * @param id
	 * @return
	 */
	public BaseCompanyInfo findById(Long id);
	
	/**
	 * 修改企业信息，显示当前企业信息 可修改名称 地址 备注
	 * @param role
	 */
	public void updateCompanyInfo(BaseCompanyInfoBean portalCompanyInfo,List<PortalAttachmentForm> attachments);
	
	
	
	/**
	 * 获取所有企业
	 * @Date        :      2016-6-16
	 * @param criteria
	 * @return
	 */
	public List<BaseCompanyInfo> queryList ();

	/**
	 * 通过唯一键Code查询
	 * @param requestCompany
	 */
	public BaseCompanyInfoBean queryByCode();
	
	public BaseCompanyInfoBean queryByCode(String companyCode);
	
	public List<BaseCompanyInfo> queryCompanys(String i18nKey);
}
